var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/";
async function connect(){
    let db =  await MongoClient.connect(url,{useNewUrlParser:true});
    return db
}

async function dropArtical(){
    let db  = await connect()
    let dbo =db.db('mongo')
    let res = await dbo.collection('artical').drop()
    console.log(res)
    db.close()
}

dropArtical()